Difference between "set", "setq", and "setf" in Common Lisp ... 2009年5月15日 - What is the difference between "set", "setq", and "setf" in Common ... Originally, in Lisp, there were no lexical variables -- only dynamic ones.
defining setf-expanders in Common Lisp - Stack Overflow 2012年7月12日 - (defun (setf arr-index) (new-value index-string) (setf (aref some-array (parse-integer index-string)) new-value)). In Common Lisp a function name can ...
Lisp style: setq vs. setf - Stack Overflow 2009年6月9日 - Also see Practical Common Lisp, chapter 3: "The SETF macro is Common Lisp's main assignment operator." PCL is available online for free: ...
Common LISP Hints: Setf Setf. Certain forms in LISP naturally define a memory location. For example, if the value of x is a structure of type foo , then (foo-bar x) defines the bar field of the ...
CLHS: Macro SETF, PSETF - LispWorks setf {pair}* => result*. psetf {pair}* => nil. pair::= place newvalue. Arguments and Values: place---a place. newvalue---a form. results---the multiple values[2] ...
Simplified Common Lisp reference - setf SETF is similar to SETQ but works with generalized places. Many functions for read access can be turned into write access. See LET, SETQ. SETF expanders ...
Variables - gigamonkeys Then I'll discuss Common Lisp's general-purpose assignment operator, SETF , which is used to assign new values to variables and just about every other place ...
7.1.2. Assignment See also the description of setf, the Common Lisp ``general assignment statement'' that is capable of assigning to variables, array elements, and other locations.
7.2. Generalized Variables Given the existence of setf in Common Lisp, it is not necessary to have setq, rplaca, and set; they are redundant. They are retained in Common Lisp because of ...
Common Lisp Extensions In other words, (setf x y) is exactly equivalent to (setq x y) , and setq itself is strictly ... The use of nthcdr as a place form is an extension to standard Common Lisp.